echo "pip版本"
pip -V
echo "安装fastapi依赖"
pip install fastapi uvicorn -i https://pypi.tuna.tsinghua.edu.cn/simple
echo "安装pydantic"
pip install pydantic -i https://pypi.tuna.tsinghua.edu.cn/simple
echo "安装 sentence-transformers"
pip install -U sentence-transformers -i https://pypi.tuna.tsinghua.edu.cn/simple
echo "安装typing"
pip install typing -i https://pypi.tuna.tsinghua.edu.cn/simple
echo "安装faster_whisper"
pip install faster_whisper -i https://pypi.tuna.tsinghua.edu.cn/simple
echo "安装chatgml3-6b使用到的相关依赖"
pip install cpm_kernels gradio sentencepiece accelerate streamlit loguru mdtex2html latex2mathml jupyter_client openai zhipuai sse-starlette timm tiktoken langchain langchainhub arxiv -i https://pypi.tuna.tsinghua.edu.cn/simple
echo "安装pytorch"
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
echo "升级wheel"
pip install --upgrade wheel -i https://pypi.tuna.tsinghua.edu.cn/simple
echo "安装语音识别相关依赖"
pip install SoundFile librosa edge_tts langdetect pyyaml tqdm faiss-cpu fairseq onnxruntime praat-parselmouth torchcrepe pyworld -i https://pypi.tuna.tsinghua.edu.cn/simple